/// avatar : "https://randomuser.me/api/portraits/men/19.jpg"
/// userId : 103
/// userName : "mock"
/// date : "9-26"
/// infoMsg : "收藏了你的路线"
/// worksUrl : "https://randomuser.me/api/portraits/men/19.jpg"

class NotificationMsgModel {
  NotificationMsgModel({
      this.avatar, 
      this.userId, 
      this.userName, 
      this.date, 
      this.infoMsg, 
      this.worksUrl,});

  NotificationMsgModel.fromJson(dynamic json) {
    avatar = json['avatar'];
    userId = json['userId'];
    userName = json['userName'];
    date = json['date'];
    infoMsg = json['infoMsg'];
    worksUrl = json['worksUrl'];
  }
  String? avatar;
  num? userId;
  String? userName;
  String? date;
  String? infoMsg;
  String? worksUrl;
NotificationMsgModel copyWith({  String? avatar,
  num? userId,
  String? userName,
  String? date,
  String? infoMsg,
  String? worksUrl,
}) => NotificationMsgModel(  avatar: avatar ?? this.avatar,
  userId: userId ?? this.userId,
  userName: userName ?? this.userName,
  date: date ?? this.date,
  infoMsg: infoMsg ?? this.infoMsg,
  worksUrl: worksUrl ?? this.worksUrl,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['avatar'] = avatar;
    map['userId'] = userId;
    map['userName'] = userName;
    map['date'] = date;
    map['infoMsg'] = infoMsg;
    map['worksUrl'] = worksUrl;
    return map;
  }

}